<template>
  <h1 v-show="flag">show控制的信息</h1>
  <button v-on:click="change">隐藏/显示</button>
  <input type="text" v-model="message">
  {{ message }}
  <h1 v-text="message"></h1>
</template>
<style>
#app{
  color: rgb(30, 30, 31);
  font-family: "宋体";
}
</style>
<script setup>
import { ref } from 'vue'
const flag=ref(true)
let message = ref('Hello Vue!')

function change(){
  flag.value=!flag.value
}
</script>